package com.scs.application.modules.dept.service;

import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.dept.dto.InOutDTO;
import com.scs.application.modules.dept.entity.DailyBalance;
import com.scs.application.modules.wm.dto.DailyOrderKey;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 仓库日清表 Service
 * </p>
 */

public interface DailyBalanceService extends IBaseService<DailyBalance> {

    /**
     * 定时任务-同步日清数据
     */
    void syncDailyBalance();

    /**
     * 出入库数量
     * @param ids
     * @return
     */
    Map<DailyOrderKey, InOutDTO> inOutUtil(List<String> ids);

    /**
     * 级联删除
     * @param ids
     */
    void delete(List<String> ids);

    /**
     * 打印预览
     * @param id
     * @param response
     */
    void preview(String id, HttpServletResponse response);
    /**
     * 保存日清
     * @param dailyBalance
     * @param
     */
    boolean saveDailyDalance(DailyBalance dailyBalance);
}
